<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/WEB-INF/jsp/common/meta.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SysUser</title>
</head>
<body>
	<div class="easyui-layout" fit=true id="sysUser_layout">
	<div data-options="region:'north',title:'导入数据提示',border:false" 
			style="padding: 0px;height: 15%">
			<table fit=true id="imports_count_grid" fitColumns=true singleSelect=true  >
						<thead>
						 <tr>
						   <td>
						      <c:if test="${errorCount != 0 }">
						      
							             <font color="red">   
							             	因本次导入模式为数据全部验证通过后，才可导入，本次导入信息中有${errorCount }条信息验证不通过，请修改数据后重新导入....
							             </font>
						      </c:if>
						      <c:if test="${errorCount ==0 }">
						      	<font color="green">  
							                       因本次导入模式为数据全部验证通过后才可导入，本次导入信息数据验证通过，导入成功....
							     </font>
						      </c:if>	
						   </td>
						 </tr>
						</thead>
					</table>
			 
		</div>
		<div data-options="region:'center',title:'导入数据列表',border:false"
			style="padding: 0px;">
			<table fit=true id="import_count_grid" fitColumns=true singleSelect=true
						data-options="url:'${ctx}/sys/sysImport/getImportCountList?importId=${importId }'">
						<thead>
							<tr>
								 <th data-options="field:'importName',width:120">导入信息</th>    
								 <th data-options="field:'successCount',width:120">验证通过（条）</th>  
								 <th data-options="field:'errorCount',width:200">验证失败（条）</th>  
								 <th data-options="field:'total',width:200">总计（条）</th> 
							</tr>
						</thead>
					</table>
			 
		</div>
		<div data-options="region:'south',split:true,border:false,title:'验证失败数据'" style="height: 50%">
			<div id="sysUser_tabs" class="easyui-tabs" style="height:100%;" >
				<div title="职务信息导入失败">
				    <table fit=true id="job_import_grid" fitColumns=true singleSelect=true
						data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_JOB%>'">
						<thead>
							<tr>
								 <th data-options="field:'jobCode',width:120">职务编码</th>    
								 <th data-options="field:'jobName',width:120">职务名称</th>  
								 <th data-options="field:'engName',width:120">英文名称</th>  
								 <th data-options="field:'i18nCode',width:120">国际化编码</th> 
								 <th data-options="field:'descr',width:200">描述</th>  
								 <th data-options="field:'checkResult',width:200">错误提示</th>
							</tr>
						</thead>
					</table>
				</div>
                
                 <div title="部门信息导入失败" >
                    <table fit=true id="dept_import_grid" fitColumns=true
						singleSelect=true
						data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_DEPT%>'">
						<thead>
							<tr>
								<th data-options="field:'parentOrgCode',width:120">父部门编码</th>  
										<th data-options="field:'orgName',width:120">部门名称</th>  
										<th data-options="field:'orgCode',width:120">部门编码</th>  
										<th data-options="field:'orgFullname',width:120">部门全名</th>  
										<th data-options="field:'engName',width:120">英文名称</th>  
										<th data-options="field:'i18nCode',width:120">国际化编码</th>  
										<th data-options="field:'descr',width:200">描述</th>  
										<th data-options="field:'checkResult',width:200">错误提示</th>  
							</tr>
						</thead>
					</table>
                </div>
                
                 <div title="岗位信息导入失败" >
                   <table fit=true id="post_import_grid" fitColumns=true
						singleSelect=true
						data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_POST%>'">
						<thead>
							<tr>
								<th data-options="field:'orgCode',width:120">部门编码</th>  
										<th data-options="field:'parentPositionCode',width:120">父岗位编码</th>  
										<th data-options="field:'jobCode',width:120">职务编码</th>  
										<th data-options="field:'positionName',width:120">岗位名称</th>  
										<th data-options="field:'positionCode',width:120">岗位编码</th>  
										<th data-options="field:'engName',width:120">英文名称</th>  
										<th data-options="field:'i18nCode',width:120">国际化编码</th>  
										<th data-options="field:'descr',width:200">描述</th>  
										<th data-options="field:'checkResult',width:200">错误提示</th>  
							</tr>
						</thead>
					</table>
                </div>
                
                 <div title="小组信息导入失败" >
                   <table fit=true id="group_import_grid" fitColumns=true
						singleSelect=true
						data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_GROUP%>'">
						<thead>
							<tr>
								<th data-options="field:'orgCode',width:120">部门编码</th>  
								<th data-options="field:'groupName',width:120">小组名称</th>  
								<th data-options="field:'groupCode',width:120">小组编码</th>  
								<th data-options="field:'engName',width:120">英文名称</th>  
								<th data-options="field:'i18nCode',width:120">国际化编码</th>  
								<th data-options="field:'descr',width:200">描述</th>  
								<th data-options="field:'checkResult',width:200">错误提示</th>  
							</tr>
						</thead>
					</table>
                </div>
                
                <div title="角色信息导入失败" >
                    <table fit=true id="role_import_grid" fitColumns=true
						singleSelect=true
						data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_ROLE%>'">
						<thead>
							<tr>
								<th data-options="field:'roleName',width:120">角色名称</th> 
								<th data-options="field:'roleCode',width:120">角色编码</th> 
								<th data-options="field:'descr',width:200">描述</th> 
								<th data-options="field:'checkResult',width:200">错误提示</th>
							</tr>
						</thead>
					</table>
                </div>
                
                <div title="用户信息导入失败" >
                    <table fit=true id="user_import_grid" fitColumns=true 
									singleSelect=true
									data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_USER%>'">
									<thead>
										<tr>
										<th data-options="field:'loginName',width:60">登录</th> 
										<th data-options="field:'userName',width:60">用户名</th>
 										  <th data-options="field:'staffCode',width:60">员工号</th> 
 											<th data-options="field:'genderName',width:40">性别</th> 
 											<th data-options="field:'birthday',width:60">生日</th> 
 											<th data-options="field:'engName',width:60">英文名</th> 
 											 <th data-options="field:'mobile',width:60">手机号</th> 
 											<th data-options="field:'telephone',width:60">联系电话</th> 
 											<th data-options="field:'email',width:60">邮箱</th> 
 											 <th data-options="field:'address',width:60">地址</th> 
 											 <th data-options="field:'staffStatusName',width:50">员工状态</th> 
 											<th data-options="field:'entryTimeStr',width:60">入职日期</th> 
 											 <th data-options="field:'quitTimeStr',width:60">离职日期</th> 
 											<th data-options="field:'idCard',width:60">身份证</th>   
											
   											 <th data-options="field:'bankCard',width:60">银行账号</th>   
   											<th data-options="field:'accountDescr',width:20">登录描述</th> 
   											<th data-options="field:'descr',width:60">用户描述</th>   
     										<th data-options="field:'staffDescr',width:60">员工描述</th>  
 											<th data-options="field:'checkResult',width:60">错误提示</th>
										</tr>
									</thead>
								</table>
                </div>
                <div title="角色权限导入失败">
								<table fit=true id="roleAuth_import_grid" fitColumns=true
									singleSelect=true
									data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_ROLE_AUTH%>'">
									<thead>
										<tr>
											<th data-options="field:'roleCode',width:120">角色编码</th> 
 											<th data-options="field:'authCode',width:200">权限编码</th> 
 										    <th data-options="field:'checkResult',width:200">错误提示</th>
										</tr>
									</thead>
								</table>
						</div>
						<div title="用户角色导入失败">
								<table fit=true id="userRole_import_grid" fitColumns=true
									singleSelect=true
									data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_USER_ROLE%>'">
									<thead>
										<tr>
											<th data-options="field:'loginName',width:120">用户登录名</th> 
 											<th data-options="field:'roleCode',width:120">角色编码</th> 
 											 <th data-options="field:'checkResult',width:200">错误提示</th> 
										</tr>
									</thead>
								</table>
						</div>
						<div title="用户权限导入失败">
								<table fit=true id="userAuth_import_grid" fitColumns=true
									singleSelect=true
									data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_USER_AUTH%>'">
									<thead>
										<tr>
											<th data-options="field:'loginName',width:120">用户登录名</th> 
 											<th data-options="field:'authCode',width:120">权限编码</th> 
 											<th data-options="field:'checkResult',width:200">错误提示</th> 
										</tr>
									</thead>
								</table>
						</div>
						<div title="用户岗位导入失败">
								<table fit=true id="userPost_import_grid" fitColumns=true
									singleSelect=true
									data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_USER_POST%>'">
									<thead>
										<tr>
											<th data-options="field:'loginName',width:120">用户登录名</th>  
  											<th data-options="field:'positionCode',width:120">岗位编码</th>  
  											<th data-options="field:'isMajorStr',width:200">是否主岗位</th>  
  											<th data-options="field:'checkResult',width:200">错误提示</th>  
										</tr>
									</thead>
								</table>
						</div>
						<div title="用户小组导入失败">
								<table fit=true id="userGroup_import_grid" fitColumns=true
									singleSelect=true
									data-options="url:'${ctx}/sys/sysImport/getList?importId=${importId }&infoType=<%=Constants.IMPORT_TYPE_USER_GROUP%>'">
									<thead>
										<tr>
											<th data-options="field:'loginName',width:120">用户登录名</th>  
 											<th data-options="field:'groupCode',width:120">小组编码</th>  
 											<th data-options="field:'checkResult',width:200">错误提示</th>  
										</tr>
									</thead>
								</table>
						</div>
			</div>

		</div>

	</div>
	
	<script type="text/javascript">
		 
		$("#import_count_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
			 
		}});
     	$("#job_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("job_import_grid", ["descr","checkResult"]);
    	}});
     	$("#dept_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("dept_import_grid", ["descr","checkResult"]);
    	}});
     	$("#post_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("post_import_grid", ["descr","checkResult"]);
    		 
    	}});
     	$("#group_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("group_import_grid", ["descr","checkResult"]);
    		 
    	}});
     	$("#role_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
    		 
     		HgUi.showGridCellTip("role_import_grid", ["descr","checkResult"]);
    	}});
     	$("#user_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("user_import_grid", ["descr","checkResult"]);
    	}});
     	 $("#roleAuth_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("roleAuth_import_grid", ["descr","checkResult"]);
    		 
    	}});
     	$("#userRole_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("userRole_import_grid", ["descr","checkResult"]);
    		 
    	}});
     	$("#userAuth_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("userAuth_import_grid", ["descr","checkResult"]);
    		 
    	}});
     	 $("#userPost_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("userPost_import_grid", ["descr","checkResult"]);
    	}});
     	$("#userGroup_import_grid").datagrid({checkOnSelect:true,selectOnCheck:false,singleSelect:true,onLoadSuccess:function(data){
     		HgUi.showGridCellTip("userGroup_import_grid", ["descr","checkResult"]);
    	}});  
	</script>
</body>
</html>